import React, { Component } from "react";
import { connect } from "react-redux";
import "./BankTransferMoneySuccess.scss";
import Header from "../../../component/header/Header";
class BankTransferMoneySuccess extends Component {
	constructor(props) {
		super(props);
		this.state = {};
	}
	componentDidMount() {
		// if(process.env.NODE_ENV !="development"){
		//     yhTools.TDAPPonEvent("tjcgym");
		// }
	}
	render() {
		let headerParams = {
			phoneStyle: this.props.getAppPlatformsDatas.phoneX,
			goToback: true,
			title: "提交成功",
			leftPathName: "#/tabPage"
		};
		return (
			<div
				className={
					this.props.getAppPlatformsDatas.phoneX
						? "bank-transfer-money-success-page mt168"
						: "bank-transfer-money-success-page mt128"
				}
			>
				<Header objParams={headerParams} />
				{/*<Header goback phoneStyle={this.props.getAppPlatformsDatas.phoneX} pathName="goToback" title='提交成功' />*/}
				<div className="content-body" id="contentBody">
					<img
						className="top-img"
						src={require("../../images/icon-edu-success.png")}
					/>
					<div className="center-tips-div">
						<div className="tip-span">提交成功</div>
					</div>
					<div className="edu-status-div">
						<div className="center-bottom-tips-div center-0-tips">
							<div className="contract-span">
								我们会尽快审核，请等待审核结果
							</div>
						</div>
					</div>
				</div>
				<div className="bottom-div">
					<a
						className="submit-btn"
						id="bottomDom"
						onClick={this.gotoPage.bind(this)}
					>
						返回首页
					</a>
				</div>
			</div>
		);
	}
	gotoPage = () => {
		window.location.replace("#/tabPage");
		// let bodyParams ={
		//     isRefresh:"1"
		// };
		// window.YHAuthorize.callHandler("SDK_ClosePage",bodyParams, resp => {});
	};
}

function mapStateToProps(state) {
	return state;
}
function mapDispatchToProps() {
	return {};
}
const BankTransferMoneySuccessPage = connect(
	mapStateToProps,
	mapDispatchToProps
)(BankTransferMoneySuccess);
export default BankTransferMoneySuccessPage;
